<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- font-awesome改为国内地址 -->
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.3/css/all.css" rel="stylesheet">
    <link rel="stylesheet" href="style.css">
    <title>Password Generator 随机密码生成器</title>
</head>

<body>
    <div class="container">
        <h2>随机密码生成器</h2>
        <!-- 密码显示 -->
        <div class="result-container">
            <!-- 密码显示框 -->
            <span id="result"></span>
            <!-- 密码复制按钮 -->
            <button class="btn" id="clipboard">
                <i class="far fa-clipboard"></i>
            </button>
        </div>
        <!-- 密码设置 -->
        <div class="settings">
            <div class="setting">
                <label>密码长度</label>
                <input type="number" id="length" min="4" max="20" value="20">
            </div>
            <div class="setting">
                <label>是否包含大写字母</label>
                <input type="checkbox" id="uppercase" checked>
            </div>
            <div class="setting">
                <label>是否包含小写字母</label>
                <input type="checkbox" id="lowercase" checked>
            </div>
            <div class="setting">
                <label>是否包含数字</label>
                <input type="checkbox" id="numbers" checked>
            </div>
            <div class="setting">
                <label>是否包含符号</label>
                <input type="checkbox" id="symbols" checked>
            </div>
        </div>

        <!-- 生成按钮 -->
        <button class="btn btn-large" id="generate">
            生成随机密码
        </button>
    </div>

    <script src="script.js"></script>
</body>

</html>